{% extends 'base/base.html' %}
{% load static %}
{% block css %}
    <link href="{% static "css/dataTables.bootstrap.min.css" %}" rel="stylesheet">
    <style>
        .btn-default:hover{
            background-color: dodgerblue !important;
        }
        tr td,th{
            text-align: center;
            width: 300px;

        }
        li {
            list-style: none;


        }
        .x_panel .x_title h2{
            
            font-weight: 700;
           

        }
    </style>
{% endblock %}
{% block content %}
    <div class="row">
        <div class="col-md-12 col-sm-12 col-xs-12">
            <div class="x_panel">
                <div class="x_title">
                    <h2>用户名：{{user.username}}</h2>

                    <div class="clearfix"></div>
                </div>
                <div class="x_content">

                    <div class="col-md-12 col-sm-12 col-xs-12">

                        <div class="table-responsive">
                            <table id="datatable-buttons" class="table table-striped table-bordered table-hover table-condensed jambo_table bulk_action">
                                
                                <tbody id="tb">
                                    {% if user.permission == '该用户没有任何权限'%}
                                    <h1>该用户没有任何权限</h1>
                                   {% else %}
                                   {% for i in user.permission%}
                                    <tr class="even pointer" >
                                        <td>
                                             {{i}}
                                         </td>
                                    </tr>
                                   {% endfor %}           
                                   {% endif %}
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

{% endblock %}

